package com.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dao.EmpDAO;
import com.pojo.EmpPOJO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class EmpService extends ServiceImpl<EmpDAO, EmpPOJO> {

    @Autowired
    private EmpDAO empDAO;

    public IPage searchEmpWithDepByPage(int page, int limit, Map m){

        System.out.println(m);
        Page p = new Page(page,limit);
          return empDAO.searchEmpWithDepByPage(p,m);

    }

}
